{template "header.html"}


<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="portlet bordered light myfbody">
        <div class="portlet-title tabbable-line">
            <ul class="nav nav-tabs" style="float:left;">
                <li class="{if $page==0}active{/if}">
                    <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('基本设置')} </a>
                </li>
                <li class="{if $page==1}active{/if}">
                    <a href="#tab_1" data-toggle="tab" onclick="$('#dr_page').val('1')"> <i class="fa fa-play-circle-o"></i> {dr_lang('广告设置')} </a>
                </li>
            </ul>
        </div>
        <div class="portlet-body">
            <div class="tab-content">


                <div class="tab-pane {if 0 == $page}active{/if}" id="tab_0">
                    <div class="form-body">

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('自动播放')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[auto_play]" value="1" {if $value[auto_play]}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('记忆播放')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[auto_time]" value="1" {if $value[auto_time]}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
                                <span class="help-block">{dr_lang('播放器将会从上次播放的时间开始播放')}</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('自动下一集')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[auto_next]" value="1" {if $value[auto_next]}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('强制使用Flash')}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[flashplayer]" value="1" {if $value[flashplayer]}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
                                <span class="help-block">{dr_lang('启用之后才能支持广告功能')}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('VIP视频试看时间')}</label>
                            <div class="col-md-9">
                                <label><input type="text" class="form-control" placeholder="" value="{$value[viptime]}" name="data[viptime]"></label>
                                <span class="help-block">{dr_lang('单位秒，0表示不提供试看')}</span>
                            </div>
                        </div>



                    </div>
                </div>
                <div class="tab-pane {if 1 == $page}active{/if}" id="tab_1">
                    <div class="form-body">


                        {loop $type $i $tt}
                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang($tt)}</label>
                            <div class="col-md-9">
                                <input type="checkbox" name="data[ad][{$i}]" value="1" {if $value[ad][$i]}checked{/if} data-on-text="{dr_lang('开启')}" data-off-text="{dr_lang('关闭')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">

                            </div>
                        </div>
                        {/loop}


                    </div>
                </div>





            </div>
        </div>
    </div>

    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}&page='+$('#dr_page').val(), 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存')}</button>
        </div>
    </div>
</form>




{template "footer.html"}